package sbe.sonar.client.database;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the ModulesByApplication database table.
 * 
 */
@Entity
@Table(name="ModulesByApplication", schema="SVNApplications")
@NamedQuery(name="ModulesByApplication.findAll", query="SELECT m FROM ModulesByApplication m")
public class ModulesByApplication implements Serializable {
	private static final long serialVersionUID = 1L;
	private ModulesByApplicationPK id;
	private Application application;
	private Module module;

	public ModulesByApplication() {
	}


	@EmbeddedId
	public ModulesByApplicationPK getId() {
		return this.id;
	}

	public void setId(ModulesByApplicationPK id) {
		this.id = id;
	}


	//bi-directional many-to-one association to Application
	@ManyToOne
	@JoinColumn(name="idApplication")
	public Application getApplication() {
		return this.application;
	}

	public void setApplication(Application application) {
		this.application = application;
	}


	//bi-directional many-to-one association to Module
	@ManyToOne
	@JoinColumn(name="idModule")
	public Module getModule() {
		return this.module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

}